<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header"></head>

<body>
<nav th:replace="layouts::navbar"></nav>
    <div class="container">

            <h2>当前用户</h2>

            <hr>
        <!--新增用户-->
        <a th:href="@{/units/new}" class="btn btn-primary bth-sm mb-3">新增用户</a>
        <br>
            <table class="table table-bordered table-striped">
                <thead class="thead-dark">
                <tr>
                    <th>昵称</th>
                    <th>性别</th>
                    <th>年龄</th>
                    <th>邮箱</th>
                    <th>用户发布动态和评论ID</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="aUnit : ${units}">
                    <td th:text="${aUnit.username}"></td>
                    <td th:text="${aUnit.gender}"></td>
                    <td th:text="${aUnit.age}"></td>
                    <td th:text="${aUnit.email}"></td>
                    <td th:text="${aUnit.promulgatorID}"></td>
                </tr>
                </tbody>
            </table>
    </div>
</body>

</html>